
<% HttpSession httpSession = request.getSession();
   Employee employee = (Employee)session.getAttribute("user");
   if(employee == null || employee.getRole()== null){
   	response.sendRedirect("errorLogin.jsp");
   }
%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.msti.entity.Course"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.msti.entity.Employee"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create Batch</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<style type="text/css">
@import "css/jquery.datepick.css";
</style>
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery.datepick.js"></script>
</head>

<body>
<div class="wrapper">
<form action="createBatch.do" method="post" id="create_batch"
	class="form">
<div id="form_header">Create Batch</div>
<ul>
	<li>
	<p class="label">Start date :</p>
	<input type="text" name="startDate" class="txt_field date" /></li>
	<li>
	<p class="label">End date :</p>
	<input type="text" name="endDate" class="txt_field date" /></li>
	<li>
	<p class="label">Select Course :</p>
	<select name="course">
		<%
		List<Course> allCourse = new ArrayList<Course>();
		allCourse = (ArrayList<Course>)request.getAttribute("allCourse");
		if(allCourse != null){
		Iterator<Course> iterator = allCourse.iterator();
		while(iterator.hasNext()){
	%>
		<option><%=iterator.next().getName() %></option>

		<%} }%>
	</select></li>
</ul>
<input type="submit" value="Create Batch" class="btn"></form>
<div class="company_name_bar"><marquee direction="left">Mercantile
Seamen Training Institute Ltd.</marquee></div>
</div>

<script type="text/javascript">
	$('.date').datepick();
</script>
</body>
</html>